"""
向量 | 模型
"""

from pydantic import BaseModel

from utils.validator_utils.pydantic_validator.field import DecimalField


class Vector3D(BaseModel):
    """ 三维向量 """

    x: float = DecimalField(..., title="X 轴位置", min_value=0, max_value=99999)
    y: float = DecimalField(..., title="Y 轴位置", min_value=0, max_value=99999)
    z: float = DecimalField(..., title="Z 轴位置", min_value=0, max_value=99999)


class Dimensions(BaseModel):
    """ 尺寸 """

    length: float = DecimalField(..., title="长度", min_value=0, max_value=99999)
    width: float = DecimalField(..., title="宽度", min_value=0, max_value=99999)
    height: float = DecimalField(..., title="高度", min_value=0, max_value=99999)
